<!DOCTYPE html>
<html lang="zh_CN" xmlns:th="http://www.thymeleaf.org">
<head>
    <title>商品类型列表</title>
    <th:block th:include="~{common/common::commonHead}"/>
    <!--<script th:src="@{/js/account/organizationList.js}"></script>-->
</head>
<body>
<div class="page-body">
    <div class="panel panel-primary shiny">
        <div class="panel-heading bg-blue">
            商品类型列表
        </div>
        <div class="widget-body grid-table">
            <div class="toolbar">
                <div class="fl-left">
                    <button data-menu-id="100301" data-click="add('goods/goodsTypeAdd.html','goodsTypeList')" class="btn btn-blue shiny">新增商品类型</button>
                    <button data-menu-id="100302" data-click="del('goodsTypeList','goods/batchDelGoodsType', false)" class="btn btn-danger shiny">刪除商品类型</button>
                </div>
                <div class="toolbar-right">
                    <div class="fl-right">
                        <div class="btn-group" role="group">
                            <button data-click="toggleFilter()" class="btn btn-default text-center">
                                <i class="fa fa-filter fa-fw"></i>
                            </button>
                            <button data-click="refresh('goodsTypeList')" class="btn btn-default">
                                <i class="fa fa-refresh fa-fw"></i>
                            </button>
                            <button data-click="download('goodsTypeList')" class="btn btn-default">
                                <i class="fa fa-download fa-fw"></i>
                            </button>
                        </div>
                    </div>
                </div>
            </div>
            <div id="goodsTypeList"></div>
            <form class="filter search-content form-horizontal" data-width="650" role="form">
                <div class="col-xs-6">
                    <div class="form-group">
                        <label class="col-xs-4 control-label">商品类型编号：</label>
                        <div class="col-xs-8">
                            <div class="iconic-input right">
                                <input name="orgId" type="text" class="form-control spinner">
                            </div>
                        </div>
                    </div>
                </div>
                <div class="col-xs-6">
                    <div class="form-group">
                        <label class="col-xs-4 control-label">商品类型名称：</label>
                        <div class="col-xs-8">
                            <div class="iconic-input right">
                                <input name="orgName" type="text" class="form-control spinner" placeholder="商品类型名称">
                            </div>
                        </div>
                    </div>
                </div>
                <div class="col-xs-6">
                    <div class="form-group">
                        <label class="col-xs-4 control-label">商品类型类型：</label>
                        <div class="col-xs-8">
                            <select name="orgType" class="form-control spinner" data-url="org/listOrgType" data-value-field="id" data-text-field="text" data-value="-1">
                                <option value="-1">全部</option>
                            </select>
                        </div>
                    </div>
                </div>
                <div class="col-xs-6">
                    <div class="form-group">
                        <label class="col-xs-4 control-label">商品类型状态：</label>
                        <div class="col-xs-8">
                            <select name="orgStatus" class="form-control spinner" data-url="org/listOrgStatus" data-value-field="id" data-text-field="text" data-value="-1">
                                <option value="-1">全部</option>
                            </select>
                        </div>
                    </div>
                </div>
                <div class="col-xs-12">
                    <button type="button" data-click="hideFilter()" class="btn btn-default pull-right">取消</button>
                    <button type="button" data-click="submitFilter('goodsTypeList')" class="btn btn-blue pull-right">确定</button>
                </div>
            </form>
        </div>
    </div>
</div>
</body>
</html>

<script>
    $(function () {
        $("#goodsTypeList").gridTable({
            url: "goods/pageGoodsType",
            columns: [
                {title: "类型编号", field: "id"},
                {title: "类型名称", field: "typeName"},
                {title: "类型状态", field: "statusStr"},
                {title: "创建时间", field: "createTime"},
                {title: "更新时间", field: "updateTime"}
            ],
            idField: "id",
            infoUrl: "goods/goodsTypeInfo.html",
            editUrl: "goods/goodsTypeEdit.html",
            delUrl: "goods/delGoodsType"
        });
    });
</script>
